﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ExamSystem.Mdeol;
using ExamSystem.DAL;
namespace ExamSystem.BLL
{
    public class TstudentBLL
    {
        private TstudentDAL td = new TstudentDAL();
         /// <summary>
       /// 根据id删除学生信息
       /// </summary>
        public int delete(int id)
        {
            return td.delete(id);
        }



         //登录
        public Tstudent islogin(string no, string pwd)
        {
            return td.islogin(no,pwd);
        }




         //查询学生信息
        public List<Tstudent> selecttstudent(int classid, string stuname)
        {
            return td.selecttstudent(classid,stuname);
        }


         /// <summary>
       /// 根据id修改学生信息
       /// </summary>
        public int update(Tstudent t)
        {
            return td.update(t);
        }


         /// <summary>
       /// 根据id添加学生信息
       /// </summary>
        public int insert(Tstudent t)
        {
            return td.insert(t);
        }


                /// <summary>
        /// 根据根据学生学号查询学生信息
        /// </summary>
        public int selecttsno(string tsno)
        {
            return td.selecttsno(tsno);
        }



        //查询学生信息
        public Tstudent selecttsid(int tsid)
        {
            return td.selecttsid(tsid);
        }
        //查询学生信息
        public List<Tstudent> selectpager(int id)
        {
            return td.selectpager(id);
        }


          //查询学生信息
        public List<Tstudent> select()
        {
            return td.select();
        }


         //查询学生信息
        public List<Tstudent> selectall()
        {
            return td.selectall();
        }
    }
}